package com.zyong.design.pattern.command.case1;

/**
 * @program: zyong-design-pattern
 * @ClassName: Client
 * @author: zyong
 * @create: 2024-03-26 00:02
 */
public class Client {
    public static void main(String[] args) {
        Command command = new ConcreteCommand(new Receiver());

        Invoker invoker = new Invoker();
        invoker.setCommand(command);

        invoker.executeCommand();
        invoker.undoExecuteCommand();
    }
}
